<#assign ctx=request.contextPath />
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>任务列表</title>
    <link rel="stylesheet" href="${ctx}/css.css">
</head>
<body>
<div style="height:0;"><a name="gotop">&nbsp;</a></div>
<div class="top">
    <a href="${ctx}/hello" class="backtrack"><img src="${ctx}/0.png"></a>
    <a href="javascript:history.back(-1);" class="return"><img src="${ctx}/12.png"></a>
    <div class="box">
        任务列表
    </div>
</div>
<div class="empty"></div>
<#if (errors?? && errors?size>0)>
<ul class="hint">
    <#list errors as err>
        <li>${err}</li>
    </#list>
</ul>
</#if>
<p class="show_1 show">
  您共有${taskList?size!""}个需要处理的事项：
</p>
<#list taskList as tp>
<table class="list_box">
    <tr hidden>
        <td class="lo_3">ID</td>
        <td class="lo_4">${tp.task.id}</td>
    </tr>
    <tr class="lo_7">
        <td class="lo_3"><img src="${ctx}/tubiao-1.png" style="position:absolute;left:0;top:5px;"><span>实例名称</span></td>
        <td class="lo_4">${(tp.pinst.name)!""}</td>
    </tr>
    <tr>
        <td class="lo_3">工单ID</td>
        <td class="lo_4">${(tp.pinst.businessKey)!""}</td>
    </tr>
    <tr>
        <td class="lo_3">名称</td>
        <td class="lo_4">${tp.task.name}</td>
    </tr>
    <tr>
        <td class="lo_3">状态</td>
        <td class="lo_4">${tp.task.status}</td>
    </tr>
    <tr>
        <td class="lo_3">分配人</td>
        <td class="lo_4">${tp.task.assignee!""}</td>
    </tr>
    <tr>
        <td class="lo_3">创建日期</td>
        <td class="lo_4">${(tp.task.createDate?datetime)!}</td>
    </tr>
    <tr>
        <td class="lo_3">截止日期</td>
        <td class="lo_4">${(tp.task.dueDate?datetime)!}</td>
    </tr>
    <tr>
        <td class="lo_3">所有者</td>
        <td class="lo_4">${tp.task.owner!""}</td>
    </tr>
    <tr>
        <td class="lo_3">签收日期</td>
        <td class="lo_4">${(tp.task.claimDate?datetime)!}</td>
    </tr>
     <tr hidden>
        <td class="lo_3">父任务ID</td>
        <td class="lo_4">${tp.task.parentTaskId!""}</td>
     </tr>
     <tr hidden>
        <td class="lo_3">流程ID</td>
        <td class="lo_4">${tp.task.processDefinitionId}</td>
     </tr>
     <tr hidden>
        <td class="lo_3">实例ID</td>
        <td class="lo_4">${tp.task.processInstanceId}</td>
     </tr>
     <tr>
        <td class="lo_3">描述</td>
        <td class="lo_4"class="lo_3">${tp.task.description!""}</td>
    </tr>
    <tr>
        <td class="lo_3">签收</td>
        <td class="lo_4 lo_10">
            <#if tp.pinst.processDefinitionKey?starts_with("procSetupMeter")>
                <a href="${ctx}/setupMeter/claimTask/${tp.task.id}">签 &nbsp &nbsp &nbsp收</a>
                <#else>
                <a href="${ctx}/lossMng/claimTask/${tp.task.id}">签 &nbsp &nbsp &nbsp收</a>
            </#if>
        </td>
    </tr>
    <tr>
        <td class="lo_3">终止当前流程</td>
        <td class="lo_4 lo_9">
            <#if tp.pinst.processDefinitionKey?starts_with("procSetupMeter")>
                <a href="${ctx}/setupMeter/cancelTask/${tp.task.id}">终止当前流程</a>
                <#else>
                <a href="${ctx}/lossMng/cancelTask/${tp.task.id}">终止当前流程</a>
            </#if>
        </td>
    </tr>
    <div style="height:10px;"></div>
</table>
</#list>
<div class="go">
	<a title="返回顶部" class="top_1" href="#gotop"></a>
	<a title="返回首页" class="feedback" href="${ctx}/hello"></a>
	<a title="返回底部" class="bottom" href="#gobottom"></a>
</div>
<div style="height:0;"><a name="gobottom">&nbsp;</a></div>
</body>
</html>